Repository navigation
The module's version has three parts - #103
Merged
Merged
Conversation
Windows PowerShell's built-in PowerShellGet (1.0.0.1) installed the 4.0 module into a 4.0.0 folder, since Compress-PSResource gives the package a three-part version, while the manifest said 4.0. PowerShell doesn't find a module whose version folder isn't its manifest's version, so after Install-Module, Import-Module ParallelKit failed. PowerShell 7's installers use the manifest's version and weren't affected. The generator now writes the manifest's version with three parts: the kit's 4.0 is the module's 4.0.0, and an X.Y.Z version stays as it is. The kit itself still reports 4.0. The README says so. The harness builds its module into a folder named the way Install-Module names it, and section BM checks the manifest's version for a two- and a three-part kit version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…he version rule in general Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Installing the module on Windows PowerShell 5.1 put it where PowerShell can't find it.
What was wrong
Compress-PSResourcegives the package a three-part version (4.0.0) whatever the manifest says. Windows PowerShell 5.1's built-in PowerShellGet (1.0.0.1) installs into a folder named after the package's version,ParallelKit\4.0.0, but the manifest saidModuleVersion = '4.0'. PowerShell doesn't find a module whose version folder isn't its manifest's version, so afterInstall-Module,Import-Module ParallelKitfailed. PowerShell 7'sInstall-ModuleandInstall-PSResourcename the folder after the manifest's version, so they worked.What changed
Build/New-ParallelKitModule.ps1writes the manifest's version with three parts: the kit's 4.0 is the module's 4.0.0, and an X.Y.Z version stays as it is. The kit itself still reports 4.0.-AsModulerun builds into a folder named the wayInstall-Modulenames it, and imports that version.Test-ModuleManifestrejects the folder's name, rather than stopping the run.Get-Moduleshows 4.0.0 for the kit's 4.0, and that's the version-RequiredVersiontakes.Tests
4.0.0and loads by name and by auto-loading on 5.1 (PowerShellGet 1.0.0.1) and 7.6.2 (PowerShellGet 2.2.5 and PSResourceGet 1.2.0), running a program and a runspace batch in each.🤖 Generated with Claude Code